#ifndef MLEXEPTION_H
#define MLEXEPTION_H

#include <QObject>

//We defin the priority of an exeption in fuction of TypeError
//in the constructor but it's possible to modify that

enum ePriority{LOW,NORMAL,HIGH};


enum eTypeError
{
    INVALID_EXTENSION
};

class MLExeption : public QObject
{
    Q_OBJECT

public:
    explicit MLExeption(eTypeError typeError, QObject *parent = 0);

    const ePriority &priority(){return _priority;}
    const eTypeError &typeError(){return _typeError;}

signals:

public slots:

private:
    ePriority _priority;
    eTypeError _typeError;

};

#endif // MLEXEPTION_H
